package com.foreknow.homework1009.worker;

public class E {

    public static void main(String[] args) {
        Worker w1 = new Worker(1,"tom","man");
        Worker w2 = new Worker(2,"jack","woman");
        Worker w3 = new Worker(3,"jhon","man");
        Worker w4 = new Worker(4,"rose","woman");
        Worker w5 = new Worker(5,"smith","man");
        Method m = new Method();
        m.add(w1);
        m.add(w2);
        m.add(w3);
        m.add(w4);
        m.add(w5);
        m.queryAll();
        m.delete(3);
        m.queryAll();
        m.query(4);
    }
}
